package com.pay.user.controller;

import com.pay.common.utils.Result;
import com.pay.user.pojo.LoginDTO;
import com.pay.user.service.TUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/index")
public class IndexController {

  @Autowired
  private TUserService tUserService;


  /**
     * 登录
     * @param loginVo
     * @return
     */
    @PostMapping("/login")
    public Result login(@RequestBody LoginDTO loginVo){
        return tUserService.login(loginVo);
    }



}
